package com.deloitte.payrollmgtsys.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.*;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.deloitte.payrollmgtsys.util.DashboardConstants;

/**
 * Responsible for creating dashboard view.
 * 
 * @author muwang
 *
 */
@Controller
public class DashboardServlet {

	@RequestMapping("/dashboard")
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		request.setAttribute("current_page", DashboardConstants.DASHBOARD_PAGE);
		request.getRequestDispatcher("/pages/dashboard.jsp").forward(request, response);
	}
}
